package com.kasa.gps.service;

import java.sql.Time;
import java.util.Date;

import com.kasa.zto.common.PczbljgjRequest;

public class OrderLocation {
	
	private String transportPlans;
	private String licensePlates;
	private Date date;
	private Time time;
	private String longitude;
	private String latitude;
	private String adrress;
	private Double speed;
	private String remarks;
	public String getTransportPlans() {
		return transportPlans;
	}
	public void setTransportPlans(String transportPlans) {
		this.transportPlans = transportPlans;
	}
	public String getLicensePlates() {
		return licensePlates;
	}
	public void setLicensePlates(String licensePlates) {
		this.licensePlates = licensePlates;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Time getTime() {
		return time;
	}
	public void setTime(Time time) {
		this.time = time;
	}
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public String getAdrress() {
		return adrress;
	}
	public void setAdrress(String adrress) {
		this.adrress = adrress;
	}
	public Double getSpeed() {
		return speed;
	}
	public void setSpeed(Double speed) {
		this.speed = speed;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public PczbljgjRequest toPczbljgjRequest(){
		PczbljgjRequest pczbljgjRequest = new PczbljgjRequest();
        pczbljgjRequest.YSJH = transportPlans;
        pczbljgjRequest.CPHM = licensePlates;
        pczbljgjRequest.RQ = date;// 日期 not null
        pczbljgjRequest.SJ = time;// 时间 not null
        pczbljgjRequest.JINGDU = longitude;// 经度 null
        pczbljgjRequest.WEIDU = latitude;// 纬度 null
        pczbljgjRequest.DD = adrress;// 地点 null
        pczbljgjRequest.SPEED = speed;// 速度 null，千米/时
        pczbljgjRequest.DQZT =pczbljgjRequest.SPEED.doubleValue()>0?"行驶":"停止";// 当前状态 null
		if(!remarks.trim().equals("")){
			pczbljgjRequest.BZ = remarks;//备注
		}
		return pczbljgjRequest;
	}

}
